<template>
  <div class="index-card">
    <div class="index-card__header">{{ title }}</div>
    <div class="index-card__content">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
export default {
  name: "index-card",
};
</script>

<script setup lang="ts">
withDefaults(
  defineProps<{
    title: string;
  }>(),
  {
    title: "",
  }
);
</script>

<style lang="less">
.index-card {
  width: 100%;
  box-sizing: border-box;
  &__header {
    font-weight: bold;
    font-size: 36px;
    color: #222222;
    line-height: 50px;
    text-align: left;
    position: relative;
  }
  &__content {
    margin-top: 14px;
  }
}
</style>
